package mutsumimod.cards.custom;

import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.GameActionManager;
import com.megacrit.cardcrawl.actions.common.DamageAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.cards.DamageInfo;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import com.megacrit.cardcrawl.powers.PlatedArmorPower;
import com.megacrit.cardcrawl.relics.AbstractRelic;
import com.megacrit.cardcrawl.rooms.AbstractRoom;
import mutsumimod.cards.BaseCard;
import mutsumimod.character.Mutsumi;
import mutsumimod.powers.HeartWallPower;
import mutsumimod.util.CardStats;

public class HeartWall extends BaseCard {

    public static final int LOSE_HP_AMOUNT=10;

    public static final String ID = makeID(HeartWall.class.getSimpleName());
    public static final CardStats info = new CardStats(
            Mutsumi.Meta.CARD_COLOR,
            CardType.SKILL,
            CardRarity.UNCOMMON,
            CardTarget.SELF,
            1

    );

    public HeartWall() {
        super(ID, info);
        setAttr(0,0,7);
        setAttrUpg(0,0,2);
        exhaust = true;
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        applyPowerSelf(new PlatedArmorPower(p,magicNumber));
        applyPowerSelf(new HeartWallPower(p,1),1);

    }

    @Override
    public AbstractCard makeCopy() { //Optional
        return new HeartWall();
    }



}
